// @ts-expect-error -- 忽略React未使用
import React, { useState } from "react";
// import reactLogo from './assets/react.svg'
// import viteLogo from '/vite.svg'
import "./App.css";
// @ts-expect-error -- 忽略
import fib from "virtual:fib";
// @ts-expect-error -- 忽略
import { ReactComponent as ReactSvg } from "./assets/react.svg";

function App() {
  const [count, setCount] = useState(0);

  setTimeout(() => {
    console.log(`fib(10): ${fib(10)}`);
  }, 300);

  return (
    <>
      <h1>Vite + React</h1>
      <div className="card">
        <button onClick={() => setCount((count) => count + 1)}>
          count is {count}
        </button>
        <p>
          Edit <code>src/App.tsx</code> and save to test HMR
        </p>
      </div>
      <p className="read-the-docs">
        Click on the Vite and React logos to learn more
      </p>

      <ReactSvg></ReactSvg>
    </>
  );
}

export default App;
